--HUD显示参数
HUD={
	runing = createHUD(),			--用于显示当前状态
	resource = createHUD(),		--资源状态
}
ShowInfo={
	lastRunningInfo="",lastResInfo="",
	RunningInfo=function(info,ingoreLog)
		if ShowInfo.lastRunningInfo~=info then
			if not ingoreLog then 
				sysLog("Running:"..info) 
				if connection then
					connection:send("Status",info)
				end
			end
			ShowInfo.lastRunningInfo=info
			showHUD(HUD.runing,
				info,Global.size.height*0.012,"0xff00ff00","0x4c000000",
				0.2,Global.size.width*0.7,0,Global.size.width*0.3,Global.size.height*0.02)
			
		end
	end,
	ResInfo=function(info,ingoreLog)
		if info~=ShowInfo.lastResInfo then
			if not ingoreLog then 
				sysLog("resource:"..info) 
				if connection then
					connection:send("SubStatus",info)
				end
			end
			ShowInfo.lastResInfo=info
			showHUD(HUD.resource,
					info,Global.size.height*0.01,"0xffffffff","0x4c000000",
					0.2,Global.size.width*0.7,Global.size.height*0.02,Global.size.width*0.3,Global.size.height*0.02)
		end
	end,
}